﻿using System;
using System.Collections.Generic;
using System.Text;
using StockTrader.BusinessService.DataContract.Mortgate;
using Mortgage.DDL;

namespace LoanMonitor.Business
{
    public class CollateralUI
    {
        public string AccountNo { get; set; }
        public List<StocksData> Blocking { get; set; }
        public List<StocksData> Remain { get; set; }
        public decimal Amount { get; set; }

        public decimal getValue()
        {
            decimal temp = 0;
            foreach (StocksData stock in Blocking)
            {
                temp += stock.Value;
            }
            return temp;
        }

        public List<StocksUI> getBlockList(decimal amount)
        {
            return null;
        }

        public void UpdateBlockList(List<StocksUI> list)
        {
        }
    }
}
